package com.xuan.mail.domin;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName email
 */
@TableName(value ="email")
@Data
public class Email implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer emailId;

    /**
     * 
     */
    private String fromMail;

    /**
     * 
     */
    private String toMail;

    /**
     * 
     */
    private String cc;

    /**
     * 
     */
    private String bcc;

    /**
     * 
     */
    private String subject;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    private Integer isdraft;

    /**
     * 
     */
    private Integer issent;

    /**
     * 
     */
    private Integer isread;

    /**
     * 
     */
    private Integer isdeleted;

    /**
     * 
     */
    private Integer isstarred;

    /**
     * 
     */
    private Integer isspam;

    /**
     * 
     */
    @ApiModelProperty(value = "上传时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date sendtime;
    private Integer userId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}